home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac-Source 1994 July
/
Mac-Source_July_1994.iso
/
C and C++
/
Libraries
/
CAccordionPane 1.0
/
README
< prev
Wrap
Text File
|
1993-05-03
|
2KB
|
33 lines
CAccordionPane.c
This set of classes implement another method for altering the size and
location of sub panes when the primary pane is resized.
TCL sub panes are related to the edges of the primary pane. While this
is quite flexible it does make difficult the need to relate panes as a
sequence and as a proportion of the whole.
The CAccordionPane classes relates panes as a sequence of vertical or
horizontal sub-panes. Each pane is either elastic or fixed. When an
accordion pane is resized each sub-pane is resized so as to keep the order
and sub-pane proportionality intact. For example, three horizontally
arranged panes each having 1/3 of the available width can be encoded with
a CHAccordionPane.
More complex plane arrangements can be had by placing accordion panes
within accordion panes. Thus, for example, a SmallTalk like browser is no
more than a CVAccordionPane with two sub-panes. The first sub-pane is a
CHAccordionPane composed of three CArrayPanes. The second sub-pane is a
CEditText pane.
To use the accordion panes simply a matter of making it the enclosure of
the sub-panes. Each time a pane is added as a subpane of another
AddSubview() is called. AddSubview() is overridden by CVAccordionPane
and CHAccordionPane to update the proportion tables. If the sub-pane
is to have a proportion other than make a call to SetSubviewPortion().
Copyright (C) 1993 by Brown University. All rights reserved.
AUTHOR: Andrew_Gilmartin@Brown.Edu
MODIFIED: 93-03-05